<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="zh">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=11"/>
<meta name="generator" content="Doxygen 1.12.0"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>LxLog: Log/Header/Logger.h 源文件</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="resize.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr id="projectrow">
  <td id="projectalign">
   <div id="projectname">LxLog
   </div>
   <div id="projectbrief">日志库</div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- 制作者 Doxygen 1.12.0 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
$(function() { codefold.init(0); });
/* @license-end */
</script>
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>首页</span></a></li>
      <li><a href="annotated.html"><span>类</span></a></li>
      <li class="current"><a href="files.html"><span>文件</span></a></li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="files.html"><span>文件列表</span></a></li>
      <li><a href="globals.html"><span>文件成员</span></a></li>
    </ul>
  </div>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
$(function(){ initResizable(false); });
/* @license-end */
</script>
<div id="nav-path" class="navpath">
  <ul>
<li class="navelem"><a class="el" href="dir_fc30d8bc4c52f877dd2b6315e410f6d2.html">Log</a></li><li class="navelem"><a class="el" href="dir_1d51d969017dc8086f211a85a7d1ac16.html">Header</a></li>  </ul>
</div>
</div><!-- top -->
<div id="doc-content">
<div class="header">
  <div class="headertitle"><div class="title">Logger.h</div></div>
</div><!--header-->
<div class="contents">
<a href="_logger_8h.html">浏览该文件的文档.</a><div class="fragment"><div class="line"><a id="l00001" name="l00001"></a><span class="lineno">    1</span> </div>
<div class="line"><a id="l00006" name="l00006"></a><span class="lineno">    6</span><span class="preprocessor">#ifndef LOGGER_LOGGER_H</span></div>
<div class="line"><a id="l00007" name="l00007"></a><span class="lineno">    7</span><span class="preprocessor">#define LOGGER_LOGGER_H</span></div>
<div class="line"><a id="l00008" name="l00008"></a><span class="lineno">    8</span> </div>
<div class="line"><a id="l00009" name="l00009"></a><span class="lineno">    9</span><span class="preprocessor">#include &lt;string_view&gt;</span></div>
<div class="line"><a id="l00010" name="l00010"></a><span class="lineno">   10</span><span class="preprocessor">#include &lt;string&gt;</span></div>
<div class="line"><a id="l00011" name="l00011"></a><span class="lineno">   11</span><span class="preprocessor">#include &lt;memory&gt;</span></div>
<div class="line"><a id="l00012" name="l00012"></a><span class="lineno">   12</span><span class="preprocessor">#include &lt;iostream&gt;</span></div>
<div class="line"><a id="l00013" name="l00013"></a><span class="lineno">   13</span><span class="preprocessor">#include &lt;source_location&gt;</span></div>
<div class="line"><a id="l00014" name="l00014"></a><span class="lineno">   14</span><span class="preprocessor">#include &lt;deque&gt;</span></div>
<div class="line"><a id="l00015" name="l00015"></a><span class="lineno">   15</span><span class="preprocessor">#include &lt;condition_variable&gt;</span></div>
<div class="line"><a id="l00016" name="l00016"></a><span class="lineno">   16</span><span class="preprocessor">#include &quot;<a class="code" href="_log_8h.html">Component/Log.h</a>&quot;</span></div>
<div class="line"><a id="l00017" name="l00017"></a><span class="lineno">   17</span><span class="preprocessor">#include &quot;<a class="code" href="_write_8h.html">Behavior/Write/Write.h</a>&quot;</span></div>
<div class="line"><a id="l00018" name="l00018"></a><span class="lineno">   18</span> </div>
<div class="foldopen" id="foldopen00019" data-start="{" data-end="};">
<div class="line"><a id="l00019" name="l00019"></a><span class="lineno"><a class="line" href="class_logger.html">   19</a></span><span class="keyword">class </span><a class="code hl_class" href="class_logger.html">Logger</a> {</div>
<div class="line"><a id="l00020" name="l00020"></a><span class="lineno">   20</span><span class="keyword">public</span>:</div>
<div class="line"><a id="l00021" name="l00021"></a><span class="lineno"><a class="line" href="class_logger.html#a68cafca721107a954d85043a553dd217">   21</a></span>    <span class="keyword">virtual</span> <a class="code hl_function" href="class_logger.html#a68cafca721107a954d85043a553dd217">~Logger</a>() = <span class="keywordflow">default</span>;</div>
<div class="line"><a id="l00022" name="l00022"></a><span class="lineno">   22</span> </div>
<div class="line"><a id="l00023" name="l00023"></a><span class="lineno">   23</span>    <span class="comment">//通过静态局部变量 实现线程安全的单例模式</span></div>
<div class="foldopen" id="foldopen00024" data-start="{" data-end="}">
<div class="line"><a id="l00024" name="l00024"></a><span class="lineno"><a class="line" href="class_logger.html#ad8c2e8259462504427739fbaf2e056bd">   24</a></span>    <span class="keyword">static</span> <a class="code hl_class" href="class_logger.html">Logger</a> &amp;<a class="code hl_function" href="class_logger.html#ad8c2e8259462504427739fbaf2e056bd">getIntance</a>() {</div>
<div class="line"><a id="l00025" name="l00025"></a><span class="lineno">   25</span>        <span class="keyword">static</span> <a class="code hl_class" href="class_logger.html">Logger</a> instance;</div>
<div class="line"><a id="l00026" name="l00026"></a><span class="lineno">   26</span>        <span class="keywordflow">return</span> instance;</div>
<div class="line"><a id="l00027" name="l00027"></a><span class="lineno">   27</span>    }</div>
</div>
<div class="line"><a id="l00028" name="l00028"></a><span class="lineno">   28</span> </div>
<div class="line"><a id="l00037" name="l00037"></a><span class="lineno">   37</span>    <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code hl_function" href="class_logger.html#a3de1b6ed57224b98699fa1fb4d69537f">asyncLog</a>(std::string_view content, <a class="code hl_enumeration" href="class_log.html#a3718f3e276c3d3e23b58a3b8236d196e">Log::LogLevel</a> level = <a class="code hl_enumvalue" href="class_log.html#a3718f3e276c3d3e23b58a3b8236d196eaa603905470e2a5b8c13e96b579ef0dba">Log::LogLevel::Debug</a>,</div>
<div class="line"><a id="l00038" name="l00038"></a><span class="lineno">   38</span>                          <a class="code hl_enumeration" href="class_log.html#ae9a5b0a1962f5076860bde2221f8e9e4">Log::Output</a> out = <a class="code hl_enumvalue" href="class_log.html#ae9a5b0a1962f5076860bde2221f8e9e4abccaa4aa80831b76c11240a16447975f">Log::Output::Console</a>, std::string_view path = <span class="stringliteral">&quot;./AppLog/&quot;</span>,</div>
<div class="line"><a id="l00039" name="l00039"></a><span class="lineno">   39</span>                          <span class="keyword">const</span> std::source_location &amp;location = std::source_location::current());</div>
<div class="line"><a id="l00040" name="l00040"></a><span class="lineno">   40</span> </div>
<div class="line"><a id="l00049" name="l00049"></a><span class="lineno">   49</span>    <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code hl_function" href="class_logger.html#a67fac285fd603d742a2e0eea7783e9b6">syncLog</a>(std::string_view content, <a class="code hl_enumeration" href="class_log.html#a3718f3e276c3d3e23b58a3b8236d196e">Log::LogLevel</a> level = <a class="code hl_enumvalue" href="class_log.html#a3718f3e276c3d3e23b58a3b8236d196eaa603905470e2a5b8c13e96b579ef0dba">Log::LogLevel::Debug</a>,</div>
<div class="line"><a id="l00050" name="l00050"></a><span class="lineno">   50</span>                         <a class="code hl_enumeration" href="class_log.html#ae9a5b0a1962f5076860bde2221f8e9e4">Log::Output</a> out = <a class="code hl_enumvalue" href="class_log.html#ae9a5b0a1962f5076860bde2221f8e9e4abccaa4aa80831b76c11240a16447975f">Log::Output::Console</a>, std::string_view path = <span class="stringliteral">&quot;./AppLog/&quot;</span>,</div>
<div class="line"><a id="l00051" name="l00051"></a><span class="lineno">   51</span>                         <span class="keyword">const</span> std::source_location &amp;location = std::source_location::current());</div>
<div class="line"><a id="l00052" name="l00052"></a><span class="lineno">   52</span> </div>
<div class="line"><a id="l00053" name="l00053"></a><span class="lineno">   53</span> </div>
<div class="line"><a id="l00058" name="l00058"></a><span class="lineno">   58</span>    <span class="keyword">inline</span> <span class="keywordtype">void</span> <a class="code hl_function" href="class_logger.html#adcdbfe0302dd53c9db3d355ddee8a3b6">startLogThread</a>();</div>
<div class="line"><a id="l00059" name="l00059"></a><span class="lineno">   59</span> </div>
<div class="line"><a id="l00063" name="l00063"></a><span class="lineno">   63</span>    <span class="keyword">inline</span> <span class="keywordtype">void</span> <a class="code hl_function" href="class_logger.html#aa223fb9d3d6becff1ee3ae8c40ec11f3">stopLogThread</a>();</div>
<div class="line"><a id="l00064" name="l00064"></a><span class="lineno">   64</span> </div>
<div class="line"><a id="l00065" name="l00065"></a><span class="lineno">   65</span> </div>
<div class="line"><a id="l00066" name="l00066"></a><span class="lineno">   66</span><span class="keyword">private</span>:</div>
<div class="line"><a id="l00067" name="l00067"></a><span class="lineno">   67</span> </div>
<div class="line"><a id="l00068" name="l00068"></a><span class="lineno"><a class="line" href="class_logger.html#ac45b6ef7069b222c094da3724d1aa8fb">   68</a></span>    <a class="code hl_function" href="class_logger.html#ac45b6ef7069b222c094da3724d1aa8fb">Logger</a>() = <span class="keywordflow">default</span>;</div>
<div class="line"><a id="l00069" name="l00069"></a><span class="lineno">   69</span> </div>
<div class="line"><a id="l00070" name="l00070"></a><span class="lineno"><a class="line" href="class_logger.html#a10c246805aee7279977997e1ae6832ab">   70</a></span>    <span class="keywordtype">void</span> <a class="code hl_function" href="class_logger.html#a10c246805aee7279977997e1ae6832ab">setIsRunning</a>(<span class="keywordtype">bool</span> isRunning) { <a class="code hl_variable" href="class_logger.html#a710380268f6d4bb1bfa841e0d71b3868">Logger::mIsRunning</a> = isRunning; }</div>
<div class="line"><a id="l00071" name="l00071"></a><span class="lineno">   71</span> </div>
<div class="line"><a id="l00072" name="l00072"></a><span class="lineno">   72</span>    <span class="keywordtype">void</span> <a class="code hl_function" href="class_logger.html#a69c0de1dd60ca195eb000a8fa94139a8">threadExec</a>();</div>
<div class="line"><a id="l00073" name="l00073"></a><span class="lineno">   73</span> </div>
<div class="line"><a id="l00074" name="l00074"></a><span class="lineno">   74</span>    <span class="keywordtype">void</span> <a class="code hl_function" href="class_logger.html#a7d13896ef57933333ed113e6bef06b21">setWriteBehavior</a>(<a class="code hl_enumeration" href="class_log.html#ae9a5b0a1962f5076860bde2221f8e9e4">Log::Output</a> out);</div>
<div class="line"><a id="l00075" name="l00075"></a><span class="lineno">   75</span> </div>
<div class="line"><a id="l00076" name="l00076"></a><span class="lineno">   76</span>    <a class="code hl_class" href="class_log.html">Log</a> <a class="code hl_function" href="class_logger.html#a6cf75422c01fb88b57f4b5f362f6d829">createLog</a>(std::string_view content, <a class="code hl_enumeration" href="class_log.html#a3718f3e276c3d3e23b58a3b8236d196e">Log::LogLevel</a> level = <a class="code hl_enumvalue" href="class_log.html#a3718f3e276c3d3e23b58a3b8236d196eaa603905470e2a5b8c13e96b579ef0dba">Log::LogLevel::Debug</a>,</div>
<div class="line"><a id="l00077" name="l00077"></a><span class="lineno">   77</span>                  <a class="code hl_enumeration" href="class_log.html#ae9a5b0a1962f5076860bde2221f8e9e4">Log::Output</a> out = <a class="code hl_enumvalue" href="class_log.html#ae9a5b0a1962f5076860bde2221f8e9e4abccaa4aa80831b76c11240a16447975f">Log::Output::Console</a>, std::string_view path = <span class="stringliteral">&quot;./Log/&quot;</span>,</div>
<div class="line"><a id="l00078" name="l00078"></a><span class="lineno">   78</span>                  <span class="keyword">const</span> std::source_location &amp;location = std::source_location::current());</div>
<div class="line"><a id="l00079" name="l00079"></a><span class="lineno">   79</span> </div>
<div class="line"><a id="l00080" name="l00080"></a><span class="lineno">   80</span><span class="keyword">private</span>:</div>
<div class="line"><a id="l00081" name="l00081"></a><span class="lineno"><a class="line" href="class_logger.html#a710380268f6d4bb1bfa841e0d71b3868">   81</a></span>    <span class="keywordtype">bool</span> <a class="code hl_variable" href="class_logger.html#a710380268f6d4bb1bfa841e0d71b3868">mIsRunning</a>{<span class="keyword">false</span>};</div>
<div class="line"><a id="l00082" name="l00082"></a><span class="lineno">   82</span>    <span class="comment">//策略模式，实现算法替换</span></div>
<div class="line"><a id="l00083" name="l00083"></a><span class="lineno"><a class="line" href="class_logger.html#ac8ffdc12d6b2ded2029b8de314b2ba12">   83</a></span>    std::unique_ptr&lt;Write&gt; <a class="code hl_variable" href="class_logger.html#ac8ffdc12d6b2ded2029b8de314b2ba12">writeBehavior</a>;</div>
<div class="line"><a id="l00084" name="l00084"></a><span class="lineno">   84</span> </div>
<div class="line"><a id="l00085" name="l00085"></a><span class="lineno"><a class="line" href="class_logger.html#a89fd90aeb0d8a6f67511e22b64d14eb6">   85</a></span>    std::mutex <a class="code hl_variable" href="class_logger.html#a89fd90aeb0d8a6f67511e22b64d14eb6">mMutex</a>;</div>
<div class="line"><a id="l00086" name="l00086"></a><span class="lineno"><a class="line" href="class_logger.html#a4b3566ea069cfd43703b194ce9846d5e">   86</a></span>    std::deque&lt;Log&gt; <a class="code hl_variable" href="class_logger.html#a4b3566ea069cfd43703b194ce9846d5e">mLogs</a>;</div>
<div class="line"><a id="l00087" name="l00087"></a><span class="lineno">   87</span>    <span class="comment">//std::condition_variable mCond;</span></div>
<div class="line"><a id="l00088" name="l00088"></a><span class="lineno"><a class="line" href="class_logger.html#a9d7b008ee613498e7d2c6a320962555a">   88</a></span>    std::thread <a class="code hl_variable" href="class_logger.html#a9d7b008ee613498e7d2c6a320962555a">thread</a>;</div>
<div class="line"><a id="l00089" name="l00089"></a><span class="lineno">   89</span>};</div>
</div>
<div class="line"><a id="l00090" name="l00090"></a><span class="lineno">   90</span> </div>
<div class="line"><a id="l00091" name="l00091"></a><span class="lineno">   91</span><span class="keyword">inline</span></div>
<div class="foldopen" id="foldopen00092" data-start="{" data-end="}">
<div class="line"><a id="l00092" name="l00092"></a><span class="lineno"><a class="line" href="class_logger.html#adcdbfe0302dd53c9db3d355ddee8a3b6">   92</a></span><span class="keywordtype">void</span> <a class="code hl_function" href="class_logger.html#adcdbfe0302dd53c9db3d355ddee8a3b6">Logger::startLogThread</a>() {</div>
<div class="line"><a id="l00093" name="l00093"></a><span class="lineno">   93</span>    <a class="code hl_function" href="class_logger.html#a10c246805aee7279977997e1ae6832ab">setIsRunning</a>(<span class="keyword">true</span>);</div>
<div class="line"><a id="l00094" name="l00094"></a><span class="lineno">   94</span>    <a class="code hl_variable" href="class_logger.html#a9d7b008ee613498e7d2c6a320962555a">thread</a> = std::thread(&amp;<a class="code hl_function" href="class_logger.html#a69c0de1dd60ca195eb000a8fa94139a8">Logger::threadExec</a>, <span class="keyword">this</span>);</div>
<div class="line"><a id="l00095" name="l00095"></a><span class="lineno">   95</span>}</div>
</div>
<div class="line"><a id="l00096" name="l00096"></a><span class="lineno">   96</span> </div>
<div class="line"><a id="l00097" name="l00097"></a><span class="lineno">   97</span><span class="keyword">inline</span></div>
<div class="foldopen" id="foldopen00098" data-start="{" data-end="}">
<div class="line"><a id="l00098" name="l00098"></a><span class="lineno"><a class="line" href="class_logger.html#aa223fb9d3d6becff1ee3ae8c40ec11f3">   98</a></span><span class="keywordtype">void</span> <a class="code hl_function" href="class_logger.html#aa223fb9d3d6becff1ee3ae8c40ec11f3">Logger::stopLogThread</a>() {</div>
<div class="line"><a id="l00099" name="l00099"></a><span class="lineno">   99</span>    <span class="comment">//等待处理全部日志</span></div>
<div class="line"><a id="l00100" name="l00100"></a><span class="lineno">  100</span>    <span class="keywordflow">while</span> (!<a class="code hl_variable" href="class_logger.html#a4b3566ea069cfd43703b194ce9846d5e">mLogs</a>.empty());</div>
<div class="line"><a id="l00101" name="l00101"></a><span class="lineno">  101</span>    <a class="code hl_function" href="class_logger.html#a10c246805aee7279977997e1ae6832ab">setIsRunning</a>(<span class="keyword">false</span>);</div>
<div class="line"><a id="l00102" name="l00102"></a><span class="lineno">  102</span> </div>
<div class="line"><a id="l00103" name="l00103"></a><span class="lineno">  103</span>    <span class="comment">//主线程停止线程日志时 等待日志线程结束</span></div>
<div class="line"><a id="l00104" name="l00104"></a><span class="lineno">  104</span>    <span class="keywordflow">if</span> (<a class="code hl_variable" href="class_logger.html#a9d7b008ee613498e7d2c6a320962555a">thread</a>.joinable())</div>
<div class="line"><a id="l00105" name="l00105"></a><span class="lineno">  105</span>        <a class="code hl_variable" href="class_logger.html#a9d7b008ee613498e7d2c6a320962555a">thread</a>.join();</div>
<div class="line"><a id="l00106" name="l00106"></a><span class="lineno">  106</span>}</div>
</div>
<div class="line"><a id="l00107" name="l00107"></a><span class="lineno">  107</span> </div>
<div class="line"><a id="l00112" name="l00112"></a><span class="lineno">  112</span><span class="keyword">inline</span></div>
<div class="foldopen" id="foldopen00113" data-start="{" data-end="}">
<div class="line"><a id="l00113" name="l00113"></a><span class="lineno"><a class="line" href="_logger_8h.html#a523639b09ac1f43c7e29b0ba6655fd4a">  113</a></span><span class="keywordtype">void</span> <a class="code hl_function" href="_logger_8h.html#a523639b09ac1f43c7e29b0ba6655fd4a">syncLogToConsoleWithInfo</a>(std::string_view content) {</div>
<div class="line"><a id="l00114" name="l00114"></a><span class="lineno">  114</span>    <a class="code hl_function" href="class_logger.html#ad8c2e8259462504427739fbaf2e056bd">Logger::getIntance</a>().<a class="code hl_function" href="class_logger.html#a67fac285fd603d742a2e0eea7783e9b6">syncLog</a>(content, <a class="code hl_enumvalue" href="class_log.html#a3718f3e276c3d3e23b58a3b8236d196ea4059b0251f66a18cb56f544728796875">Log::LogLevel::Info</a>, <a class="code hl_enumvalue" href="class_log.html#ae9a5b0a1962f5076860bde2221f8e9e4abccaa4aa80831b76c11240a16447975f">Log::Output::Console</a>);</div>
<div class="line"><a id="l00115" name="l00115"></a><span class="lineno">  115</span>}</div>
</div>
<div class="line"><a id="l00116" name="l00116"></a><span class="lineno">  116</span> </div>
<div class="line"><a id="l00121" name="l00121"></a><span class="lineno">  121</span><span class="keyword">inline</span></div>
<div class="foldopen" id="foldopen00122" data-start="{" data-end="}">
<div class="line"><a id="l00122" name="l00122"></a><span class="lineno"><a class="line" href="_logger_8h.html#a633058ed84c2f19a24bfd737602c8fdb">  122</a></span><span class="keywordtype">void</span> <a class="code hl_function" href="_logger_8h.html#a633058ed84c2f19a24bfd737602c8fdb">syncLogToConsoleWithDebug</a>(std::string_view content) {</div>
<div class="line"><a id="l00123" name="l00123"></a><span class="lineno">  123</span>    <a class="code hl_function" href="class_logger.html#ad8c2e8259462504427739fbaf2e056bd">Logger::getIntance</a>().<a class="code hl_function" href="class_logger.html#a67fac285fd603d742a2e0eea7783e9b6">syncLog</a>(content, <a class="code hl_enumvalue" href="class_log.html#a3718f3e276c3d3e23b58a3b8236d196eaa603905470e2a5b8c13e96b579ef0dba">Log::LogLevel::Debug</a>, <a class="code hl_enumvalue" href="class_log.html#ae9a5b0a1962f5076860bde2221f8e9e4abccaa4aa80831b76c11240a16447975f">Log::Output::Console</a>);</div>
<div class="line"><a id="l00124" name="l00124"></a><span class="lineno">  124</span>}</div>
</div>
<div class="line"><a id="l00125" name="l00125"></a><span class="lineno">  125</span> </div>
<div class="line"><a id="l00130" name="l00130"></a><span class="lineno">  130</span><span class="keyword">inline</span></div>
<div class="foldopen" id="foldopen00131" data-start="{" data-end="}">
<div class="line"><a id="l00131" name="l00131"></a><span class="lineno"><a class="line" href="_logger_8h.html#addda6a143d861e2d916643e8ba4c3e63">  131</a></span><span class="keywordtype">void</span> <a class="code hl_function" href="_logger_8h.html#addda6a143d861e2d916643e8ba4c3e63">syncLogToConsoleWithWarning</a>(std::string_view content) {</div>
<div class="line"><a id="l00132" name="l00132"></a><span class="lineno">  132</span>    <a class="code hl_function" href="class_logger.html#ad8c2e8259462504427739fbaf2e056bd">Logger::getIntance</a>().<a class="code hl_function" href="class_logger.html#a67fac285fd603d742a2e0eea7783e9b6">syncLog</a>(content, <a class="code hl_enumvalue" href="class_log.html#a3718f3e276c3d3e23b58a3b8236d196ea0eaadb4fcb48a0a0ed7bc9868be9fbaa">Log::LogLevel::Warning</a>, <a class="code hl_enumvalue" href="class_log.html#ae9a5b0a1962f5076860bde2221f8e9e4abccaa4aa80831b76c11240a16447975f">Log::Output::Console</a>);</div>
<div class="line"><a id="l00133" name="l00133"></a><span class="lineno">  133</span>}</div>
</div>
<div class="line"><a id="l00134" name="l00134"></a><span class="lineno">  134</span> </div>
<div class="line"><a id="l00139" name="l00139"></a><span class="lineno">  139</span><span class="keyword">inline</span></div>
<div class="foldopen" id="foldopen00140" data-start="{" data-end="}">
<div class="line"><a id="l00140" name="l00140"></a><span class="lineno"><a class="line" href="_logger_8h.html#a206a3e993a226bdf76356acc1a2f1051">  140</a></span><span class="keywordtype">void</span> <a class="code hl_function" href="_logger_8h.html#a206a3e993a226bdf76356acc1a2f1051">syncLogToConsoleWithError</a>(std::string_view content) {</div>
<div class="line"><a id="l00141" name="l00141"></a><span class="lineno">  141</span>    <a class="code hl_function" href="class_logger.html#ad8c2e8259462504427739fbaf2e056bd">Logger::getIntance</a>().<a class="code hl_function" href="class_logger.html#a67fac285fd603d742a2e0eea7783e9b6">syncLog</a>(content, <a class="code hl_enumvalue" href="class_log.html#a3718f3e276c3d3e23b58a3b8236d196ea902b0d55fddef6f8d651fe1035b7d4bd">Log::LogLevel::Error</a>, <a class="code hl_enumvalue" href="class_log.html#ae9a5b0a1962f5076860bde2221f8e9e4abccaa4aa80831b76c11240a16447975f">Log::Output::Console</a>);</div>
<div class="line"><a id="l00142" name="l00142"></a><span class="lineno">  142</span>}</div>
</div>
<div class="line"><a id="l00143" name="l00143"></a><span class="lineno">  143</span> </div>
<div class="line"><a id="l00148" name="l00148"></a><span class="lineno">  148</span><span class="keyword">inline</span></div>
<div class="foldopen" id="foldopen00149" data-start="{" data-end="}">
<div class="line"><a id="l00149" name="l00149"></a><span class="lineno"><a class="line" href="_logger_8h.html#aec5386e3e1ce867555623b37945cd31e">  149</a></span><span class="keywordtype">void</span> <a class="code hl_function" href="_logger_8h.html#aec5386e3e1ce867555623b37945cd31e">syncLogToConsoleWithFatal</a>(std::string_view content) {</div>
<div class="line"><a id="l00150" name="l00150"></a><span class="lineno">  150</span>    <a class="code hl_function" href="class_logger.html#ad8c2e8259462504427739fbaf2e056bd">Logger::getIntance</a>().<a class="code hl_function" href="class_logger.html#a67fac285fd603d742a2e0eea7783e9b6">syncLog</a>(content, <a class="code hl_enumvalue" href="class_log.html#a3718f3e276c3d3e23b58a3b8236d196ea882384ec38ce8d9582b57e70861730e4">Log::LogLevel::Fatal</a>, <a class="code hl_enumvalue" href="class_log.html#ae9a5b0a1962f5076860bde2221f8e9e4abccaa4aa80831b76c11240a16447975f">Log::Output::Console</a>);</div>
<div class="line"><a id="l00151" name="l00151"></a><span class="lineno">  151</span>}</div>
</div>
<div class="line"><a id="l00152" name="l00152"></a><span class="lineno">  152</span> </div>
<div class="foldopen" id="foldopen00157" data-start="{" data-end="}">
<div class="line"><a id="l00157" name="l00157"></a><span class="lineno"><a class="line" href="_logger_8h.html#a165f452f1cf15b99d6fba2c16b485a46">  157</a></span><span class="keywordtype">void</span> <a class="code hl_function" href="_logger_8h.html#a165f452f1cf15b99d6fba2c16b485a46">asyncLogToConsoleWithInfo</a>(std::string_view content) {</div>
<div class="line"><a id="l00158" name="l00158"></a><span class="lineno">  158</span>    <a class="code hl_function" href="class_logger.html#ad8c2e8259462504427739fbaf2e056bd">Logger::getIntance</a>().<a class="code hl_function" href="class_logger.html#a3de1b6ed57224b98699fa1fb4d69537f">asyncLog</a>(content, <a class="code hl_enumvalue" href="class_log.html#a3718f3e276c3d3e23b58a3b8236d196ea4059b0251f66a18cb56f544728796875">Log::LogLevel::Info</a>, <a class="code hl_enumvalue" href="class_log.html#ae9a5b0a1962f5076860bde2221f8e9e4abccaa4aa80831b76c11240a16447975f">Log::Output::Console</a>);</div>
<div class="line"><a id="l00159" name="l00159"></a><span class="lineno">  159</span>}</div>
</div>
<div class="line"><a id="l00160" name="l00160"></a><span class="lineno">  160</span> </div>
<div class="line"><a id="l00165" name="l00165"></a><span class="lineno">  165</span><span class="keyword">inline</span></div>
<div class="foldopen" id="foldopen00166" data-start="{" data-end="}">
<div class="line"><a id="l00166" name="l00166"></a><span class="lineno"><a class="line" href="_logger_8h.html#a24263b6313df357bfdc7b1f44abadee4">  166</a></span><span class="keywordtype">void</span> <a class="code hl_function" href="_logger_8h.html#a24263b6313df357bfdc7b1f44abadee4">asyncLogToConsoleWithDebug</a>(std::string_view content) {</div>
<div class="line"><a id="l00167" name="l00167"></a><span class="lineno">  167</span>    <a class="code hl_function" href="class_logger.html#ad8c2e8259462504427739fbaf2e056bd">Logger::getIntance</a>().<a class="code hl_function" href="class_logger.html#a3de1b6ed57224b98699fa1fb4d69537f">asyncLog</a>(content, <a class="code hl_enumvalue" href="class_log.html#a3718f3e276c3d3e23b58a3b8236d196eaa603905470e2a5b8c13e96b579ef0dba">Log::LogLevel::Debug</a>, <a class="code hl_enumvalue" href="class_log.html#ae9a5b0a1962f5076860bde2221f8e9e4abccaa4aa80831b76c11240a16447975f">Log::Output::Console</a>);</div>
<div class="line"><a id="l00168" name="l00168"></a><span class="lineno">  168</span>}</div>
</div>
<div class="line"><a id="l00169" name="l00169"></a><span class="lineno">  169</span> </div>
<div class="line"><a id="l00174" name="l00174"></a><span class="lineno">  174</span><span class="keyword">inline</span></div>
<div class="foldopen" id="foldopen00175" data-start="{" data-end="}">
<div class="line"><a id="l00175" name="l00175"></a><span class="lineno"><a class="line" href="_logger_8h.html#a6af2dc06b28584b872ead88fe8c21445">  175</a></span><span class="keywordtype">void</span> <a class="code hl_function" href="_logger_8h.html#a6af2dc06b28584b872ead88fe8c21445">asyncLogToConsoleWithWarning</a>(std::string_view content) {</div>
<div class="line"><a id="l00176" name="l00176"></a><span class="lineno">  176</span>    <a class="code hl_function" href="class_logger.html#ad8c2e8259462504427739fbaf2e056bd">Logger::getIntance</a>().<a class="code hl_function" href="class_logger.html#a3de1b6ed57224b98699fa1fb4d69537f">asyncLog</a>(content, <a class="code hl_enumvalue" href="class_log.html#a3718f3e276c3d3e23b58a3b8236d196ea0eaadb4fcb48a0a0ed7bc9868be9fbaa">Log::LogLevel::Warning</a>, <a class="code hl_enumvalue" href="class_log.html#ae9a5b0a1962f5076860bde2221f8e9e4abccaa4aa80831b76c11240a16447975f">Log::Output::Console</a>);</div>
<div class="line"><a id="l00177" name="l00177"></a><span class="lineno">  177</span>}</div>
</div>
<div class="line"><a id="l00178" name="l00178"></a><span class="lineno">  178</span> </div>
<div class="line"><a id="l00183" name="l00183"></a><span class="lineno">  183</span><span class="keyword">inline</span></div>
<div class="foldopen" id="foldopen00184" data-start="{" data-end="}">
<div class="line"><a id="l00184" name="l00184"></a><span class="lineno"><a class="line" href="_logger_8h.html#a26cfc586bd6bab82140d2b814786fdcf">  184</a></span><span class="keywordtype">void</span> <a class="code hl_function" href="_logger_8h.html#a26cfc586bd6bab82140d2b814786fdcf">asyncLogToConsoleWithError</a>(std::string_view content) {</div>
<div class="line"><a id="l00185" name="l00185"></a><span class="lineno">  185</span>    <a class="code hl_function" href="class_logger.html#ad8c2e8259462504427739fbaf2e056bd">Logger::getIntance</a>().<a class="code hl_function" href="class_logger.html#a3de1b6ed57224b98699fa1fb4d69537f">asyncLog</a>(content, <a class="code hl_enumvalue" href="class_log.html#a3718f3e276c3d3e23b58a3b8236d196ea902b0d55fddef6f8d651fe1035b7d4bd">Log::LogLevel::Error</a>, <a class="code hl_enumvalue" href="class_log.html#ae9a5b0a1962f5076860bde2221f8e9e4abccaa4aa80831b76c11240a16447975f">Log::Output::Console</a>);</div>
<div class="line"><a id="l00186" name="l00186"></a><span class="lineno">  186</span>}</div>
</div>
<div class="line"><a id="l00187" name="l00187"></a><span class="lineno">  187</span> </div>
<div class="line"><a id="l00192" name="l00192"></a><span class="lineno">  192</span><span class="keyword">inline</span></div>
<div class="foldopen" id="foldopen00193" data-start="{" data-end="}">
<div class="line"><a id="l00193" name="l00193"></a><span class="lineno"><a class="line" href="_logger_8h.html#a58dd46fddc3679aad9c0a65b5ecf8b27">  193</a></span><span class="keywordtype">void</span> <a class="code hl_function" href="_logger_8h.html#a58dd46fddc3679aad9c0a65b5ecf8b27">asyncLogToConsoleWithFatal</a>(std::string_view content) {</div>
<div class="line"><a id="l00194" name="l00194"></a><span class="lineno">  194</span>    <a class="code hl_function" href="class_logger.html#ad8c2e8259462504427739fbaf2e056bd">Logger::getIntance</a>().<a class="code hl_function" href="class_logger.html#a3de1b6ed57224b98699fa1fb4d69537f">asyncLog</a>(content, <a class="code hl_enumvalue" href="class_log.html#a3718f3e276c3d3e23b58a3b8236d196ea882384ec38ce8d9582b57e70861730e4">Log::LogLevel::Fatal</a>, <a class="code hl_enumvalue" href="class_log.html#ae9a5b0a1962f5076860bde2221f8e9e4abccaa4aa80831b76c11240a16447975f">Log::Output::Console</a>);</div>
<div class="line"><a id="l00195" name="l00195"></a><span class="lineno">  195</span>}</div>
</div>
<div class="line"><a id="l00196" name="l00196"></a><span class="lineno">  196</span> </div>
<div class="line"><a id="l00201" name="l00201"></a><span class="lineno">  201</span><span class="keyword">inline</span></div>
<div class="foldopen" id="foldopen00202" data-start="{" data-end="}">
<div class="line"><a id="l00202" name="l00202"></a><span class="lineno"><a class="line" href="_logger_8h.html#a82f4625fa85e19311f25f1de28dd3faf">  202</a></span><span class="keywordtype">void</span> <a class="code hl_function" href="_logger_8h.html#a82f4625fa85e19311f25f1de28dd3faf">syncLogToFileWithInfo</a>(std::string_view content) {</div>
<div class="line"><a id="l00203" name="l00203"></a><span class="lineno">  203</span>    <a class="code hl_function" href="class_logger.html#ad8c2e8259462504427739fbaf2e056bd">Logger::getIntance</a>().<a class="code hl_function" href="class_logger.html#a67fac285fd603d742a2e0eea7783e9b6">syncLog</a>(content, <a class="code hl_enumvalue" href="class_log.html#a3718f3e276c3d3e23b58a3b8236d196ea4059b0251f66a18cb56f544728796875">Log::LogLevel::Info</a>, <a class="code hl_enumvalue" href="class_log.html#ae9a5b0a1962f5076860bde2221f8e9e4a0b27918290ff5323bea1e3b78a9cf04e">Log::Output::File</a>);</div>
<div class="line"><a id="l00204" name="l00204"></a><span class="lineno">  204</span>}</div>
</div>
<div class="line"><a id="l00205" name="l00205"></a><span class="lineno">  205</span> </div>
<div class="line"><a id="l00210" name="l00210"></a><span class="lineno">  210</span><span class="keyword">inline</span></div>
<div class="foldopen" id="foldopen00211" data-start="{" data-end="}">
<div class="line"><a id="l00211" name="l00211"></a><span class="lineno"><a class="line" href="_logger_8h.html#a80999f6e4518653d5607aac46acf0269">  211</a></span><span class="keywordtype">void</span> <a class="code hl_function" href="_logger_8h.html#a80999f6e4518653d5607aac46acf0269">syncLogToFileWithDebug</a>(std::string_view content) {</div>
<div class="line"><a id="l00212" name="l00212"></a><span class="lineno">  212</span>    <a class="code hl_function" href="class_logger.html#ad8c2e8259462504427739fbaf2e056bd">Logger::getIntance</a>().<a class="code hl_function" href="class_logger.html#a67fac285fd603d742a2e0eea7783e9b6">syncLog</a>(content, <a class="code hl_enumvalue" href="class_log.html#a3718f3e276c3d3e23b58a3b8236d196eaa603905470e2a5b8c13e96b579ef0dba">Log::LogLevel::Debug</a>, <a class="code hl_enumvalue" href="class_log.html#ae9a5b0a1962f5076860bde2221f8e9e4a0b27918290ff5323bea1e3b78a9cf04e">Log::Output::File</a>);</div>
<div class="line"><a id="l00213" name="l00213"></a><span class="lineno">  213</span>}</div>
</div>
<div class="line"><a id="l00214" name="l00214"></a><span class="lineno">  214</span> </div>
<div class="line"><a id="l00219" name="l00219"></a><span class="lineno">  219</span><span class="keyword">inline</span></div>
<div class="foldopen" id="foldopen00220" data-start="{" data-end="}">
<div class="line"><a id="l00220" name="l00220"></a><span class="lineno"><a class="line" href="_logger_8h.html#a5bd865626335f44cdf1947389adc7d38">  220</a></span><span class="keywordtype">void</span> <a class="code hl_function" href="_logger_8h.html#a5bd865626335f44cdf1947389adc7d38">syncLogToFileWithWarning</a>(std::string_view content) {</div>
<div class="line"><a id="l00221" name="l00221"></a><span class="lineno">  221</span>    <a class="code hl_function" href="class_logger.html#ad8c2e8259462504427739fbaf2e056bd">Logger::getIntance</a>().<a class="code hl_function" href="class_logger.html#a67fac285fd603d742a2e0eea7783e9b6">syncLog</a>(content, <a class="code hl_enumvalue" href="class_log.html#a3718f3e276c3d3e23b58a3b8236d196ea0eaadb4fcb48a0a0ed7bc9868be9fbaa">Log::LogLevel::Warning</a>, <a class="code hl_enumvalue" href="class_log.html#ae9a5b0a1962f5076860bde2221f8e9e4a0b27918290ff5323bea1e3b78a9cf04e">Log::Output::File</a>);</div>
<div class="line"><a id="l00222" name="l00222"></a><span class="lineno">  222</span>}</div>
</div>
<div class="line"><a id="l00223" name="l00223"></a><span class="lineno">  223</span> </div>
<div class="line"><a id="l00228" name="l00228"></a><span class="lineno">  228</span><span class="keyword">inline</span></div>
<div class="foldopen" id="foldopen00229" data-start="{" data-end="}">
<div class="line"><a id="l00229" name="l00229"></a><span class="lineno"><a class="line" href="_logger_8h.html#a34ca115a82b92ee4934cb37a0f09e680">  229</a></span><span class="keywordtype">void</span> <a class="code hl_function" href="_logger_8h.html#a34ca115a82b92ee4934cb37a0f09e680">syncLogToFileWithError</a>(std::string_view content) {</div>
<div class="line"><a id="l00230" name="l00230"></a><span class="lineno">  230</span>    <a class="code hl_function" href="class_logger.html#ad8c2e8259462504427739fbaf2e056bd">Logger::getIntance</a>().<a class="code hl_function" href="class_logger.html#a67fac285fd603d742a2e0eea7783e9b6">syncLog</a>(content, <a class="code hl_enumvalue" href="class_log.html#a3718f3e276c3d3e23b58a3b8236d196ea902b0d55fddef6f8d651fe1035b7d4bd">Log::LogLevel::Error</a>, <a class="code hl_enumvalue" href="class_log.html#ae9a5b0a1962f5076860bde2221f8e9e4a0b27918290ff5323bea1e3b78a9cf04e">Log::Output::File</a>);</div>
<div class="line"><a id="l00231" name="l00231"></a><span class="lineno">  231</span>}</div>
</div>
<div class="line"><a id="l00232" name="l00232"></a><span class="lineno">  232</span> </div>
<div class="line"><a id="l00237" name="l00237"></a><span class="lineno">  237</span><span class="keyword">inline</span></div>
<div class="foldopen" id="foldopen00238" data-start="{" data-end="}">
<div class="line"><a id="l00238" name="l00238"></a><span class="lineno"><a class="line" href="_logger_8h.html#aa37ed8d3bd1c5358f2aca1642797a606">  238</a></span><span class="keywordtype">void</span> <a class="code hl_function" href="_logger_8h.html#aa37ed8d3bd1c5358f2aca1642797a606">syncLogToFileWithFatal</a>(std::string_view content) {</div>
<div class="line"><a id="l00239" name="l00239"></a><span class="lineno">  239</span>    <a class="code hl_function" href="class_logger.html#ad8c2e8259462504427739fbaf2e056bd">Logger::getIntance</a>().<a class="code hl_function" href="class_logger.html#a67fac285fd603d742a2e0eea7783e9b6">syncLog</a>(content, <a class="code hl_enumvalue" href="class_log.html#a3718f3e276c3d3e23b58a3b8236d196ea882384ec38ce8d9582b57e70861730e4">Log::LogLevel::Fatal</a>, <a class="code hl_enumvalue" href="class_log.html#ae9a5b0a1962f5076860bde2221f8e9e4a0b27918290ff5323bea1e3b78a9cf04e">Log::Output::File</a>);</div>
<div class="line"><a id="l00240" name="l00240"></a><span class="lineno">  240</span>}</div>
</div>
<div class="line"><a id="l00241" name="l00241"></a><span class="lineno">  241</span> </div>
<div class="line"><a id="l00246" name="l00246"></a><span class="lineno">  246</span><span class="keyword">inline</span></div>
<div class="foldopen" id="foldopen00247" data-start="{" data-end="}">
<div class="line"><a id="l00247" name="l00247"></a><span class="lineno"><a class="line" href="_logger_8h.html#aad35da567d9ff0ab4248ec4cdf82a844">  247</a></span><span class="keywordtype">void</span> <a class="code hl_function" href="_logger_8h.html#aad35da567d9ff0ab4248ec4cdf82a844">asyncLogToFileWithInfo</a>(std::string_view content) {</div>
<div class="line"><a id="l00248" name="l00248"></a><span class="lineno">  248</span>    <a class="code hl_function" href="class_logger.html#ad8c2e8259462504427739fbaf2e056bd">Logger::getIntance</a>().<a class="code hl_function" href="class_logger.html#a3de1b6ed57224b98699fa1fb4d69537f">asyncLog</a>(content, <a class="code hl_enumvalue" href="class_log.html#a3718f3e276c3d3e23b58a3b8236d196ea4059b0251f66a18cb56f544728796875">Log::LogLevel::Info</a>, <a class="code hl_enumvalue" href="class_log.html#ae9a5b0a1962f5076860bde2221f8e9e4a0b27918290ff5323bea1e3b78a9cf04e">Log::Output::File</a>);</div>
<div class="line"><a id="l00249" name="l00249"></a><span class="lineno">  249</span>}</div>
</div>
<div class="line"><a id="l00250" name="l00250"></a><span class="lineno">  250</span> </div>
<div class="line"><a id="l00255" name="l00255"></a><span class="lineno">  255</span><span class="keyword">inline</span></div>
<div class="foldopen" id="foldopen00256" data-start="{" data-end="}">
<div class="line"><a id="l00256" name="l00256"></a><span class="lineno"><a class="line" href="_logger_8h.html#a413f603ddea15939e76860febbec016e">  256</a></span><span class="keywordtype">void</span> <a class="code hl_function" href="_logger_8h.html#a413f603ddea15939e76860febbec016e">asyncLogToFileWithDebug</a>(std::string_view content) {</div>
<div class="line"><a id="l00257" name="l00257"></a><span class="lineno">  257</span>    <a class="code hl_function" href="class_logger.html#ad8c2e8259462504427739fbaf2e056bd">Logger::getIntance</a>().<a class="code hl_function" href="class_logger.html#a3de1b6ed57224b98699fa1fb4d69537f">asyncLog</a>(content, <a class="code hl_enumvalue" href="class_log.html#a3718f3e276c3d3e23b58a3b8236d196eaa603905470e2a5b8c13e96b579ef0dba">Log::LogLevel::Debug</a>, <a class="code hl_enumvalue" href="class_log.html#ae9a5b0a1962f5076860bde2221f8e9e4a0b27918290ff5323bea1e3b78a9cf04e">Log::Output::File</a>);</div>
<div class="line"><a id="l00258" name="l00258"></a><span class="lineno">  258</span>}</div>
</div>
<div class="line"><a id="l00259" name="l00259"></a><span class="lineno">  259</span> </div>
<div class="line"><a id="l00264" name="l00264"></a><span class="lineno">  264</span><span class="keyword">inline</span></div>
<div class="foldopen" id="foldopen00265" data-start="{" data-end="}">
<div class="line"><a id="l00265" name="l00265"></a><span class="lineno"><a class="line" href="_logger_8h.html#a797454d1747307acf576df248196a682">  265</a></span><span class="keywordtype">void</span> <a class="code hl_function" href="_logger_8h.html#a797454d1747307acf576df248196a682">asyncLogToFileWithWarning</a>(std::string_view content) {</div>
<div class="line"><a id="l00266" name="l00266"></a><span class="lineno">  266</span>    <a class="code hl_function" href="class_logger.html#ad8c2e8259462504427739fbaf2e056bd">Logger::getIntance</a>().<a class="code hl_function" href="class_logger.html#a3de1b6ed57224b98699fa1fb4d69537f">asyncLog</a>(content, <a class="code hl_enumvalue" href="class_log.html#a3718f3e276c3d3e23b58a3b8236d196ea0eaadb4fcb48a0a0ed7bc9868be9fbaa">Log::LogLevel::Warning</a>, <a class="code hl_enumvalue" href="class_log.html#ae9a5b0a1962f5076860bde2221f8e9e4a0b27918290ff5323bea1e3b78a9cf04e">Log::Output::File</a>);</div>
<div class="line"><a id="l00267" name="l00267"></a><span class="lineno">  267</span>}</div>
</div>
<div class="line"><a id="l00268" name="l00268"></a><span class="lineno">  268</span> </div>
<div class="line"><a id="l00273" name="l00273"></a><span class="lineno">  273</span><span class="keyword">inline</span></div>
<div class="foldopen" id="foldopen00274" data-start="{" data-end="}">
<div class="line"><a id="l00274" name="l00274"></a><span class="lineno"><a class="line" href="_logger_8h.html#a60aa9085fa6c05765195d5347920bda6">  274</a></span><span class="keywordtype">void</span> <a class="code hl_function" href="_logger_8h.html#a60aa9085fa6c05765195d5347920bda6">asyncLogToFileWithError</a>(std::string_view content) {</div>
<div class="line"><a id="l00275" name="l00275"></a><span class="lineno">  275</span>    <a class="code hl_function" href="class_logger.html#ad8c2e8259462504427739fbaf2e056bd">Logger::getIntance</a>().<a class="code hl_function" href="class_logger.html#a3de1b6ed57224b98699fa1fb4d69537f">asyncLog</a>(content, <a class="code hl_enumvalue" href="class_log.html#a3718f3e276c3d3e23b58a3b8236d196ea902b0d55fddef6f8d651fe1035b7d4bd">Log::LogLevel::Error</a>, <a class="code hl_enumvalue" href="class_log.html#ae9a5b0a1962f5076860bde2221f8e9e4a0b27918290ff5323bea1e3b78a9cf04e">Log::Output::File</a>);</div>
<div class="line"><a id="l00276" name="l00276"></a><span class="lineno">  276</span>}</div>
</div>
<div class="line"><a id="l00277" name="l00277"></a><span class="lineno">  277</span> </div>
<div class="line"><a id="l00282" name="l00282"></a><span class="lineno">  282</span><span class="keyword">inline</span></div>
<div class="foldopen" id="foldopen00283" data-start="{" data-end="}">
<div class="line"><a id="l00283" name="l00283"></a><span class="lineno"><a class="line" href="_logger_8h.html#ac5b23d1dc82718fcb6f0c9d6be557673">  283</a></span><span class="keywordtype">void</span> <a class="code hl_function" href="_logger_8h.html#ac5b23d1dc82718fcb6f0c9d6be557673">asyncLogToFileWithFatal</a>(std::string_view content) {</div>
<div class="line"><a id="l00284" name="l00284"></a><span class="lineno">  284</span>    <a class="code hl_function" href="class_logger.html#ad8c2e8259462504427739fbaf2e056bd">Logger::getIntance</a>().<a class="code hl_function" href="class_logger.html#a3de1b6ed57224b98699fa1fb4d69537f">asyncLog</a>(content, <a class="code hl_enumvalue" href="class_log.html#a3718f3e276c3d3e23b58a3b8236d196ea882384ec38ce8d9582b57e70861730e4">Log::LogLevel::Fatal</a>, <a class="code hl_enumvalue" href="class_log.html#ae9a5b0a1962f5076860bde2221f8e9e4a0b27918290ff5323bea1e3b78a9cf04e">Log::Output::File</a>);</div>
<div class="line"><a id="l00285" name="l00285"></a><span class="lineno">  285</span>}</div>
</div>
<div class="line"><a id="l00286" name="l00286"></a><span class="lineno">  286</span> </div>
<div class="line"><a id="l00287" name="l00287"></a><span class="lineno">  287</span> </div>
<div class="line"><a id="l00288" name="l00288"></a><span class="lineno">  288</span><span class="preprocessor">#endif </span><span class="comment">//LOGGER_LOGGER_H</span></div>
<div class="ttc" id="a_log_8h_html"><div class="ttname"><a href="_log_8h.html">Log.h</a></div></div>
<div class="ttc" id="a_logger_8h_html_a165f452f1cf15b99d6fba2c16b485a46"><div class="ttname"><a href="_logger_8h.html#a165f452f1cf15b99d6fba2c16b485a46">asyncLogToConsoleWithInfo</a></div><div class="ttdeci">void asyncLogToConsoleWithInfo(std::string_view content)</div><div class="ttdef"><b>定义</b> Logger.h:157</div></div>
<div class="ttc" id="a_logger_8h_html_a206a3e993a226bdf76356acc1a2f1051"><div class="ttname"><a href="_logger_8h.html#a206a3e993a226bdf76356acc1a2f1051">syncLogToConsoleWithError</a></div><div class="ttdeci">void syncLogToConsoleWithError(std::string_view content)</div><div class="ttdef"><b>定义</b> Logger.h:140</div></div>
<div class="ttc" id="a_logger_8h_html_a24263b6313df357bfdc7b1f44abadee4"><div class="ttname"><a href="_logger_8h.html#a24263b6313df357bfdc7b1f44abadee4">asyncLogToConsoleWithDebug</a></div><div class="ttdeci">void asyncLogToConsoleWithDebug(std::string_view content)</div><div class="ttdef"><b>定义</b> Logger.h:166</div></div>
<div class="ttc" id="a_logger_8h_html_a26cfc586bd6bab82140d2b814786fdcf"><div class="ttname"><a href="_logger_8h.html#a26cfc586bd6bab82140d2b814786fdcf">asyncLogToConsoleWithError</a></div><div class="ttdeci">void asyncLogToConsoleWithError(std::string_view content)</div><div class="ttdef"><b>定义</b> Logger.h:184</div></div>
<div class="ttc" id="a_logger_8h_html_a34ca115a82b92ee4934cb37a0f09e680"><div class="ttname"><a href="_logger_8h.html#a34ca115a82b92ee4934cb37a0f09e680">syncLogToFileWithError</a></div><div class="ttdeci">void syncLogToFileWithError(std::string_view content)</div><div class="ttdef"><b>定义</b> Logger.h:229</div></div>
<div class="ttc" id="a_logger_8h_html_a413f603ddea15939e76860febbec016e"><div class="ttname"><a href="_logger_8h.html#a413f603ddea15939e76860febbec016e">asyncLogToFileWithDebug</a></div><div class="ttdeci">void asyncLogToFileWithDebug(std::string_view content)</div><div class="ttdef"><b>定义</b> Logger.h:256</div></div>
<div class="ttc" id="a_logger_8h_html_a523639b09ac1f43c7e29b0ba6655fd4a"><div class="ttname"><a href="_logger_8h.html#a523639b09ac1f43c7e29b0ba6655fd4a">syncLogToConsoleWithInfo</a></div><div class="ttdeci">void syncLogToConsoleWithInfo(std::string_view content)</div><div class="ttdef"><b>定义</b> Logger.h:113</div></div>
<div class="ttc" id="a_logger_8h_html_a58dd46fddc3679aad9c0a65b5ecf8b27"><div class="ttname"><a href="_logger_8h.html#a58dd46fddc3679aad9c0a65b5ecf8b27">asyncLogToConsoleWithFatal</a></div><div class="ttdeci">void asyncLogToConsoleWithFatal(std::string_view content)</div><div class="ttdef"><b>定义</b> Logger.h:193</div></div>
<div class="ttc" id="a_logger_8h_html_a5bd865626335f44cdf1947389adc7d38"><div class="ttname"><a href="_logger_8h.html#a5bd865626335f44cdf1947389adc7d38">syncLogToFileWithWarning</a></div><div class="ttdeci">void syncLogToFileWithWarning(std::string_view content)</div><div class="ttdef"><b>定义</b> Logger.h:220</div></div>
<div class="ttc" id="a_logger_8h_html_a60aa9085fa6c05765195d5347920bda6"><div class="ttname"><a href="_logger_8h.html#a60aa9085fa6c05765195d5347920bda6">asyncLogToFileWithError</a></div><div class="ttdeci">void asyncLogToFileWithError(std::string_view content)</div><div class="ttdef"><b>定义</b> Logger.h:274</div></div>
<div class="ttc" id="a_logger_8h_html_a633058ed84c2f19a24bfd737602c8fdb"><div class="ttname"><a href="_logger_8h.html#a633058ed84c2f19a24bfd737602c8fdb">syncLogToConsoleWithDebug</a></div><div class="ttdeci">void syncLogToConsoleWithDebug(std::string_view content)</div><div class="ttdef"><b>定义</b> Logger.h:122</div></div>
<div class="ttc" id="a_logger_8h_html_a6af2dc06b28584b872ead88fe8c21445"><div class="ttname"><a href="_logger_8h.html#a6af2dc06b28584b872ead88fe8c21445">asyncLogToConsoleWithWarning</a></div><div class="ttdeci">void asyncLogToConsoleWithWarning(std::string_view content)</div><div class="ttdef"><b>定义</b> Logger.h:175</div></div>
<div class="ttc" id="a_logger_8h_html_a797454d1747307acf576df248196a682"><div class="ttname"><a href="_logger_8h.html#a797454d1747307acf576df248196a682">asyncLogToFileWithWarning</a></div><div class="ttdeci">void asyncLogToFileWithWarning(std::string_view content)</div><div class="ttdef"><b>定义</b> Logger.h:265</div></div>
<div class="ttc" id="a_logger_8h_html_a80999f6e4518653d5607aac46acf0269"><div class="ttname"><a href="_logger_8h.html#a80999f6e4518653d5607aac46acf0269">syncLogToFileWithDebug</a></div><div class="ttdeci">void syncLogToFileWithDebug(std::string_view content)</div><div class="ttdef"><b>定义</b> Logger.h:211</div></div>
<div class="ttc" id="a_logger_8h_html_a82f4625fa85e19311f25f1de28dd3faf"><div class="ttname"><a href="_logger_8h.html#a82f4625fa85e19311f25f1de28dd3faf">syncLogToFileWithInfo</a></div><div class="ttdeci">void syncLogToFileWithInfo(std::string_view content)</div><div class="ttdef"><b>定义</b> Logger.h:202</div></div>
<div class="ttc" id="a_logger_8h_html_aa37ed8d3bd1c5358f2aca1642797a606"><div class="ttname"><a href="_logger_8h.html#aa37ed8d3bd1c5358f2aca1642797a606">syncLogToFileWithFatal</a></div><div class="ttdeci">void syncLogToFileWithFatal(std::string_view content)</div><div class="ttdef"><b>定义</b> Logger.h:238</div></div>
<div class="ttc" id="a_logger_8h_html_aad35da567d9ff0ab4248ec4cdf82a844"><div class="ttname"><a href="_logger_8h.html#aad35da567d9ff0ab4248ec4cdf82a844">asyncLogToFileWithInfo</a></div><div class="ttdeci">void asyncLogToFileWithInfo(std::string_view content)</div><div class="ttdef"><b>定义</b> Logger.h:247</div></div>
<div class="ttc" id="a_logger_8h_html_ac5b23d1dc82718fcb6f0c9d6be557673"><div class="ttname"><a href="_logger_8h.html#ac5b23d1dc82718fcb6f0c9d6be557673">asyncLogToFileWithFatal</a></div><div class="ttdeci">void asyncLogToFileWithFatal(std::string_view content)</div><div class="ttdef"><b>定义</b> Logger.h:283</div></div>
<div class="ttc" id="a_logger_8h_html_addda6a143d861e2d916643e8ba4c3e63"><div class="ttname"><a href="_logger_8h.html#addda6a143d861e2d916643e8ba4c3e63">syncLogToConsoleWithWarning</a></div><div class="ttdeci">void syncLogToConsoleWithWarning(std::string_view content)</div><div class="ttdef"><b>定义</b> Logger.h:131</div></div>
<div class="ttc" id="a_logger_8h_html_aec5386e3e1ce867555623b37945cd31e"><div class="ttname"><a href="_logger_8h.html#aec5386e3e1ce867555623b37945cd31e">syncLogToConsoleWithFatal</a></div><div class="ttdeci">void syncLogToConsoleWithFatal(std::string_view content)</div><div class="ttdef"><b>定义</b> Logger.h:149</div></div>
<div class="ttc" id="a_write_8h_html"><div class="ttname"><a href="_write_8h.html">Write.h</a></div></div>
<div class="ttc" id="aclass_log_html"><div class="ttname"><a href="class_log.html">Log</a></div><div class="ttdef"><b>定义</b> Log.h:14</div></div>
<div class="ttc" id="aclass_log_html_a3718f3e276c3d3e23b58a3b8236d196e"><div class="ttname"><a href="class_log.html#a3718f3e276c3d3e23b58a3b8236d196e">Log::LogLevel</a></div><div class="ttdeci">LogLevel</div><div class="ttdoc">输出日志等级</div><div class="ttdef"><b>定义</b> Log.h:19</div></div>
<div class="ttc" id="aclass_log_html_a3718f3e276c3d3e23b58a3b8236d196ea0eaadb4fcb48a0a0ed7bc9868be9fbaa"><div class="ttname"><a href="class_log.html#a3718f3e276c3d3e23b58a3b8236d196ea0eaadb4fcb48a0a0ed7bc9868be9fbaa">Log::LogLevel::Warning</a></div><div class="ttdeci">@ Warning</div></div>
<div class="ttc" id="aclass_log_html_a3718f3e276c3d3e23b58a3b8236d196ea4059b0251f66a18cb56f544728796875"><div class="ttname"><a href="class_log.html#a3718f3e276c3d3e23b58a3b8236d196ea4059b0251f66a18cb56f544728796875">Log::LogLevel::Info</a></div><div class="ttdeci">@ Info</div></div>
<div class="ttc" id="aclass_log_html_a3718f3e276c3d3e23b58a3b8236d196ea882384ec38ce8d9582b57e70861730e4"><div class="ttname"><a href="class_log.html#a3718f3e276c3d3e23b58a3b8236d196ea882384ec38ce8d9582b57e70861730e4">Log::LogLevel::Fatal</a></div><div class="ttdeci">@ Fatal</div></div>
<div class="ttc" id="aclass_log_html_a3718f3e276c3d3e23b58a3b8236d196ea902b0d55fddef6f8d651fe1035b7d4bd"><div class="ttname"><a href="class_log.html#a3718f3e276c3d3e23b58a3b8236d196ea902b0d55fddef6f8d651fe1035b7d4bd">Log::LogLevel::Error</a></div><div class="ttdeci">@ Error</div></div>
<div class="ttc" id="aclass_log_html_a3718f3e276c3d3e23b58a3b8236d196eaa603905470e2a5b8c13e96b579ef0dba"><div class="ttname"><a href="class_log.html#a3718f3e276c3d3e23b58a3b8236d196eaa603905470e2a5b8c13e96b579ef0dba">Log::LogLevel::Debug</a></div><div class="ttdeci">@ Debug</div></div>
<div class="ttc" id="aclass_log_html_ae9a5b0a1962f5076860bde2221f8e9e4"><div class="ttname"><a href="class_log.html#ae9a5b0a1962f5076860bde2221f8e9e4">Log::Output</a></div><div class="ttdeci">Output</div><div class="ttdoc">输出日志目标</div><div class="ttdef"><b>定义</b> Log.h:28</div></div>
<div class="ttc" id="aclass_log_html_ae9a5b0a1962f5076860bde2221f8e9e4a0b27918290ff5323bea1e3b78a9cf04e"><div class="ttname"><a href="class_log.html#ae9a5b0a1962f5076860bde2221f8e9e4a0b27918290ff5323bea1e3b78a9cf04e">Log::Output::File</a></div><div class="ttdeci">@ File</div></div>
<div class="ttc" id="aclass_log_html_ae9a5b0a1962f5076860bde2221f8e9e4abccaa4aa80831b76c11240a16447975f"><div class="ttname"><a href="class_log.html#ae9a5b0a1962f5076860bde2221f8e9e4abccaa4aa80831b76c11240a16447975f">Log::Output::Console</a></div><div class="ttdeci">@ Console</div></div>
<div class="ttc" id="aclass_logger_html"><div class="ttname"><a href="class_logger.html">Logger</a></div><div class="ttdef"><b>定义</b> Logger.h:19</div></div>
<div class="ttc" id="aclass_logger_html_a10c246805aee7279977997e1ae6832ab"><div class="ttname"><a href="class_logger.html#a10c246805aee7279977997e1ae6832ab">Logger::setIsRunning</a></div><div class="ttdeci">void setIsRunning(bool isRunning)</div><div class="ttdef"><b>定义</b> Logger.h:70</div></div>
<div class="ttc" id="aclass_logger_html_a3de1b6ed57224b98699fa1fb4d69537f"><div class="ttname"><a href="class_logger.html#a3de1b6ed57224b98699fa1fb4d69537f">Logger::asyncLog</a></div><div class="ttdeci">virtual void asyncLog(std::string_view content, Log::LogLevel level=Log::LogLevel::Debug, Log::Output out=Log::Output::Console, std::string_view path=&quot;./AppLog/&quot;, const std::source_location &amp;location=std::source_location::current())</div><div class="ttdef"><b>定义</b> Logger.cpp:13</div></div>
<div class="ttc" id="aclass_logger_html_a4b3566ea069cfd43703b194ce9846d5e"><div class="ttname"><a href="class_logger.html#a4b3566ea069cfd43703b194ce9846d5e">Logger::mLogs</a></div><div class="ttdeci">std::deque&lt; Log &gt; mLogs</div><div class="ttdef"><b>定义</b> Logger.h:86</div></div>
<div class="ttc" id="aclass_logger_html_a67fac285fd603d742a2e0eea7783e9b6"><div class="ttname"><a href="class_logger.html#a67fac285fd603d742a2e0eea7783e9b6">Logger::syncLog</a></div><div class="ttdeci">virtual void syncLog(std::string_view content, Log::LogLevel level=Log::LogLevel::Debug, Log::Output out=Log::Output::Console, std::string_view path=&quot;./AppLog/&quot;, const std::source_location &amp;location=std::source_location::current())</div><div class="ttdef"><b>定义</b> Logger.cpp:21</div></div>
<div class="ttc" id="aclass_logger_html_a68cafca721107a954d85043a553dd217"><div class="ttname"><a href="class_logger.html#a68cafca721107a954d85043a553dd217">Logger::~Logger</a></div><div class="ttdeci">virtual ~Logger()=default</div></div>
<div class="ttc" id="aclass_logger_html_a69c0de1dd60ca195eb000a8fa94139a8"><div class="ttname"><a href="class_logger.html#a69c0de1dd60ca195eb000a8fa94139a8">Logger::threadExec</a></div><div class="ttdeci">void threadExec()</div><div class="ttdef"><b>定义</b> Logger.cpp:68</div></div>
<div class="ttc" id="aclass_logger_html_a6cf75422c01fb88b57f4b5f362f6d829"><div class="ttname"><a href="class_logger.html#a6cf75422c01fb88b57f4b5f362f6d829">Logger::createLog</a></div><div class="ttdeci">Log createLog(std::string_view content, Log::LogLevel level=Log::LogLevel::Debug, Log::Output out=Log::Output::Console, std::string_view path=&quot;./Log/&quot;, const std::source_location &amp;location=std::source_location::current())</div><div class="ttdef"><b>定义</b> Logger.cpp:44</div></div>
<div class="ttc" id="aclass_logger_html_a710380268f6d4bb1bfa841e0d71b3868"><div class="ttname"><a href="class_logger.html#a710380268f6d4bb1bfa841e0d71b3868">Logger::mIsRunning</a></div><div class="ttdeci">bool mIsRunning</div><div class="ttdef"><b>定义</b> Logger.h:81</div></div>
<div class="ttc" id="aclass_logger_html_a7d13896ef57933333ed113e6bef06b21"><div class="ttname"><a href="class_logger.html#a7d13896ef57933333ed113e6bef06b21">Logger::setWriteBehavior</a></div><div class="ttdeci">void setWriteBehavior(Log::Output out)</div><div class="ttdef"><b>定义</b> Logger.cpp:30</div></div>
<div class="ttc" id="aclass_logger_html_a89fd90aeb0d8a6f67511e22b64d14eb6"><div class="ttname"><a href="class_logger.html#a89fd90aeb0d8a6f67511e22b64d14eb6">Logger::mMutex</a></div><div class="ttdeci">std::mutex mMutex</div><div class="ttdef"><b>定义</b> Logger.h:85</div></div>
<div class="ttc" id="aclass_logger_html_a9d7b008ee613498e7d2c6a320962555a"><div class="ttname"><a href="class_logger.html#a9d7b008ee613498e7d2c6a320962555a">Logger::thread</a></div><div class="ttdeci">std::thread thread</div><div class="ttdef"><b>定义</b> Logger.h:88</div></div>
<div class="ttc" id="aclass_logger_html_aa223fb9d3d6becff1ee3ae8c40ec11f3"><div class="ttname"><a href="class_logger.html#aa223fb9d3d6becff1ee3ae8c40ec11f3">Logger::stopLogThread</a></div><div class="ttdeci">void stopLogThread()</div><div class="ttdef"><b>定义</b> Logger.h:98</div></div>
<div class="ttc" id="aclass_logger_html_ac45b6ef7069b222c094da3724d1aa8fb"><div class="ttname"><a href="class_logger.html#ac45b6ef7069b222c094da3724d1aa8fb">Logger::Logger</a></div><div class="ttdeci">Logger()=default</div></div>
<div class="ttc" id="aclass_logger_html_ac8ffdc12d6b2ded2029b8de314b2ba12"><div class="ttname"><a href="class_logger.html#ac8ffdc12d6b2ded2029b8de314b2ba12">Logger::writeBehavior</a></div><div class="ttdeci">std::unique_ptr&lt; Write &gt; writeBehavior</div><div class="ttdef"><b>定义</b> Logger.h:83</div></div>
<div class="ttc" id="aclass_logger_html_ad8c2e8259462504427739fbaf2e056bd"><div class="ttname"><a href="class_logger.html#ad8c2e8259462504427739fbaf2e056bd">Logger::getIntance</a></div><div class="ttdeci">static Logger &amp; getIntance()</div><div class="ttdef"><b>定义</b> Logger.h:24</div></div>
<div class="ttc" id="aclass_logger_html_adcdbfe0302dd53c9db3d355ddee8a3b6"><div class="ttname"><a href="class_logger.html#adcdbfe0302dd53c9db3d355ddee8a3b6">Logger::startLogThread</a></div><div class="ttdeci">void startLogThread()</div><div class="ttdef"><b>定义</b> Logger.h:92</div></div>
</div><!-- fragment --></div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
制作者&#160;<a href="https://www.doxygen.org/index.html"><img class="footer" src="doxygen.svg" width="104" height="31" alt="doxygen"/></a> 1.12.0
</small></address>
</div><!-- doc-content -->
</body>
</html>
